<html>
<head>
<link href="../../../Objects/sofa_white.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div id="contenu">
		
		<center><h3>Creation of a Pendulum (6/8)</h3></center>
		<div id="orangeText">Description</div>

        <p>Now we will add another mechanical object, with its own mass. It will be placed below the ODE solver in the scene graph, so it will be taken into account during the simulation step.</p>

		<div id="orangeText">Key points</div>
        
        <p>During the <a href="0_Pendulum.scn">first part</a> of this tutorial, we described how to create a mechanical object. We use the same SOFA components, <b>MechanicalObject</b> and <b>UniformMass</b>, to create our second object.</p>

		<div id="tutorialAction"> <p> Find the <strong>GNode</strong> component at the bottom of the Modeler window. Drag and drop it onto the <strong>root</strong> node. </p>
         
		<p>Double click the new node, and change the<strong> Object Name</strong> to "SecondObject".</p>
        
		<p>Find the <strong>MechanicalObject</strong> component using the <strong>Filter</strong>. Drag and drop it on the <strong>Second Object</strong> node. Repeat with the <strong>UniformMass</strong> component.</p>
        
		<p>Double click the new MechanicalObject and go to the<strong> Vector 1/4</strong> tab. Under position, change the <strong>X</strong> coordinate to "2".</p></div>
        
        <p>We have created one new particle, and placed it at position (2, 0, 0).</p>

		<div id="orangeText">Results</div>

		<p><div id="tutorialAction">Run in SOFA and animate.</div></p>

        <p>There now three particles: 2 belonging to the first object, and a third from the second object we just created. As no interaction exists between the two objects, the particles fall according to gravity.</p>
                
                <br><center><h3><a href="4_Pendulum.scn">Previous</a> ____________  <a href="6_Pendulum.scn">Next</a></center></h3>
	</div>
</body>
</html>
